package com.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * rentfile
 * @author 
 */
public class Rentfile implements Serializable {
    private Integer rentid;

    private Integer clientid;

    private Integer rentclientid;

    private Integer uid;

    private Date renttime;

    private Integer roomid;

    private Date rentdate;

    private BigDecimal rentpay;

    private BigDecimal cashpay;

    private String rentfile;

    private String descript;

    private static final long serialVersionUID = 1L;

    public Integer getRentid() {
        return rentid;
    }

    public void setRentid(Integer rentid) {
        this.rentid = rentid;
    }

    public Integer getClientid() {
        return clientid;
    }

    public void setClientid(Integer clientid) {
        this.clientid = clientid;
    }

    public Integer getRentclientid() {
        return rentclientid;
    }

    public void setRentclientid(Integer rentclientid) {
        this.rentclientid = rentclientid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Date getRenttime() {
        return renttime;
    }

    public void setRenttime(Date renttime) {
        this.renttime = renttime;
    }

    public Integer getRoomid() {
        return roomid;
    }

    public void setRoomid(Integer roomid) {
        this.roomid = roomid;
    }

    public Date getRentdate() {
        return rentdate;
    }

    public void setRentdate(Date rentdate) {
        this.rentdate = rentdate;
    }

    public BigDecimal getRentpay() {
        return rentpay;
    }

    public void setRentpay(BigDecimal rentpay) {
        this.rentpay = rentpay;
    }

    public BigDecimal getCashpay() {
        return cashpay;
    }

    public void setCashpay(BigDecimal cashpay) {
        this.cashpay = cashpay;
    }

    public String getRentfile() {
        return rentfile;
    }

    public void setRentfile(String rentfile) {
        this.rentfile = rentfile;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Rentfile other = (Rentfile) that;
        return (this.getRentid() == null ? other.getRentid() == null : this.getRentid().equals(other.getRentid()))
            && (this.getClientid() == null ? other.getClientid() == null : this.getClientid().equals(other.getClientid()))
            && (this.getRentclientid() == null ? other.getRentclientid() == null : this.getRentclientid().equals(other.getRentclientid()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getRenttime() == null ? other.getRenttime() == null : this.getRenttime().equals(other.getRenttime()))
            && (this.getRoomid() == null ? other.getRoomid() == null : this.getRoomid().equals(other.getRoomid()))
            && (this.getRentdate() == null ? other.getRentdate() == null : this.getRentdate().equals(other.getRentdate()))
            && (this.getRentpay() == null ? other.getRentpay() == null : this.getRentpay().equals(other.getRentpay()))
            && (this.getCashpay() == null ? other.getCashpay() == null : this.getCashpay().equals(other.getCashpay()))
            && (this.getRentfile() == null ? other.getRentfile() == null : this.getRentfile().equals(other.getRentfile()))
            && (this.getDescript() == null ? other.getDescript() == null : this.getDescript().equals(other.getDescript()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRentid() == null) ? 0 : getRentid().hashCode());
        result = prime * result + ((getClientid() == null) ? 0 : getClientid().hashCode());
        result = prime * result + ((getRentclientid() == null) ? 0 : getRentclientid().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getRenttime() == null) ? 0 : getRenttime().hashCode());
        result = prime * result + ((getRoomid() == null) ? 0 : getRoomid().hashCode());
        result = prime * result + ((getRentdate() == null) ? 0 : getRentdate().hashCode());
        result = prime * result + ((getRentpay() == null) ? 0 : getRentpay().hashCode());
        result = prime * result + ((getCashpay() == null) ? 0 : getCashpay().hashCode());
        result = prime * result + ((getRentfile() == null) ? 0 : getRentfile().hashCode());
        result = prime * result + ((getDescript() == null) ? 0 : getDescript().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rentid=").append(rentid);
        sb.append(", clientid=").append(clientid);
        sb.append(", rentclientid=").append(rentclientid);
        sb.append(", uid=").append(uid);
        sb.append(", renttime=").append(renttime);
        sb.append(", roomid=").append(roomid);
        sb.append(", rentdate=").append(rentdate);
        sb.append(", rentpay=").append(rentpay);
        sb.append(", cashpay=").append(cashpay);
        sb.append(", rentfile=").append(rentfile);
        sb.append(", descript=").append(descript);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}